import {
    requestApi
} from '../util/network'

// 获取直播列表
export const getLiveList =
    (data, keyword, type) =>
    requestApi(
        '/Lives/live_lists',
        'POST', {
            'page': data.page, // 当前第几页
            'show': data.per_page, // 每页多少
            keyword, // 关键字
            type // 直播类型:1:正在直播/2:直播回放
        }
    );

// 获取直播回放页面数据
export const getPlayback =
    (videoId) =>
    requestApi(
        '/Lives/lives_detail',
        'POST', {
            lives_id: videoId
        }
    );


// 获取直播回放页面数据(点赞)
export const getChangeLikesNum =
    (livesId) =>
    requestApi(
        '/Lives/changeLikesNum',
        'POST', {
            lives_id: livesId,
        }
    );



// 获取直播回放页面数据(浏览量)
export const getChangeVisitNum =
    (livesId) =>
    requestApi(
        '/Lives/changeVisitNum',
        'POST', {
            livesId: livesId,
        }
    );


// export const test =
//     (storeId) =>
//     requestApi(
//         '/Store/store_info',
//         'POST', {
//             store_id: storeId,
//         }
//     );